//
//  StatusesModel.m
//  11217微博状态
//
//  Created by student on 16/3/8.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "StatusesModel.h"

@implementation StatusesModel

-(instancetype)initWithDict:(NSDictionary *)d{
    self=[super init];
    if (self) {
        [self setValuesForKeysWithDictionary:d];
    }
    return self;
}

+(instancetype)statusWithDict:(NSDictionary *)d{
    return [[self alloc]initWithDict:d];
}

+(NSArray *)statusArr{
    NSString *path=[[NSBundle mainBundle]pathForResource:@"statuses" ofType:@"plist"];
    NSArray *arr=[NSArray arrayWithContentsOfFile:path];
    NSMutableArray *mArr=[NSMutableArray array];
    for (NSDictionary *dict in arr){
        StatusesModel *m=[StatusesModel statusWithDict:dict];
        [mArr addObject:m];
    }
    return mArr;
}

@end
